package com.vito.dcs.sys.material.dao;


import java.util.List;

import com.vito.dcs.sys.material.model.SysMaterialModel;

/**
 * 材料类型
 * @author lyhao
 *
 */
public interface SysMaterialMapper {

	/**
	 * 保存
	 * @param sysMaterial
	 * @return
	 */
	public Integer saveSysMaterial(SysMaterialModel sysMaterialModel);
	/**
	 * 分页查询
	 * @param sysMaterialModel
	 * @return
	 */
	public List<SysMaterialModel> querySysMaterialByPage(SysMaterialModel sysMaterialModel);
	/**
	 * 查询总数
	 * @param sysMaterialModel
	 * @return
	 */
	public Integer querySysMaterialByCount(SysMaterialModel sysMaterialModel);
	/**
	 * 查询
	 * @param sysMaterialModel
	 * @return
	 */
	public SysMaterialModel querySysMaterial(SysMaterialModel sysMaterialModel);
	/**
	 * 修改
	 * @param sysMaterialModel
	 * @return
	 */
	public Integer updateSysMaterial(SysMaterialModel sysMaterialModel);
	/**
	 * 删除
	 * @param sysMaterialModel
	 * @return
	 */
	public Integer deleteSysMaterial(SysMaterialModel sysMaterialModel);
	
	/**
	 * 根据结构层id查询材料类型
	 * @param layerId
	 * @return
	 */
	public List<SysMaterialModel> findMaterialList(String layerId);

}